From: Alexandre Emsenhuber Date: Sun, 6 Apr 2008 17:30:04 +0000 (+0000) Subject: Per request of Nikerabbit: add wfDeprecated() to all methods of Image class. X-Git-Tag: 1.31.0-rc.0~48578 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=9ae47b8f896802091d86625389236955adab6213;p=lhc%2Fweb%2Fwiklou.git Per request of Nikerabbit: add wfDeprecated() to all methods of Image class. --- diff --git a/includes/filerepo/Image.php b/includes/filerepo/Image.php index 9ab750c1b4..1a5c08a2da 100644 --- a/includes/filerepo/Image.php +++ b/includes/filerepo/Image.php @@ -6,6 +6,7 @@ */ class Image extends LocalFile { function __construct( $title ) { + wfDeprecated( __METHOD__ ); $repo = RepoGroup::singleton()->getLocalRepo(); parent::__construct( $title, $repo ); } @@ -16,6 +17,7 @@ class Image extends LocalFile { * @deprecated */ static function newFromTitle( $title, $time = false ) { + wfDeprecated( __METHOD__ ); $img = wfFindFile( $title, $time ); if ( !$img ) { $img = wfLocalFile( $title ); @@ -32,6 +34,7 @@ class Image extends LocalFile { * @deprecated */ static function newFromName( $name ) { + wfDeprecated( __METHOD__ ); $title = Title::makeTitleSafe( NS_IMAGE, $name ); if ( is_object( $title ) ) { $img = wfFindFile( $title ); @@ -57,6 +60,7 @@ class Image extends LocalFile { * @deprecated */ static function imageUrl( $name, $fromSharedDirectory = false ) { + wfDeprecated( __METHOD__ ); $image = null; if( $fromSharedDirectory ) { $image = wfFindFile( $name );